{% extends "app16/layout.html" %}

{% block title %} user add {% endblock title %}

{% block content %}

<div class="container">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h3 class="panel-title">新建用户</h3>
    </div>
    <div class="panel-body">
      <form method="post">
        {% csrf_token %}
        <div class="form-group">
          <label>姓名</label>
          <input type="text" name="user" class="form-control" placeholder="姓名" />
        </div>

        <div class="form-group">
          <label>密码</label>
          <input type="text" name="pwd" class="form-control" placeholder="密码" />
        </div>
        <div class="form-group">
          <label>年龄</label>
          <input type="text" name="age" class="form-control" placeholder="年龄" />
        </div>
        <div class="form-group">
          <label>余额</label>
          <input type="text" name="account" class="form-control" placeholder="余额" />
        </div>
        <div class="form-group">
          <label>时间</label>
          <input type="text" name="ctime" class="form-control" placeholder="时间" />
        </div>
        <div class="form-group">
          <label>部门</label>
          <select class="form-control" name="depart_id">
            {% for item in depart_list %}
            <option value="{{item.id}}">{{item.title}}</option>
            {% endfor %}
          </select>
        </div>
        <div class="form-group">
          <label>性别</label>
          <select class="form-control" name="gender">
            {% for item in gender_choice %}
            <option value="{{item.0}}">{{item.1}}</option>
            {% endfor %}
          </select>
        </div>

        <button type="submit" class="btn btn-primary">提 交</button>
      </form>
    </div>
  </div>
</div>

{% endblock content %}